package io.renren.modules.car.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.car.dao.CarBuyerMiddleDao;
import io.renren.modules.car.entity.CarBuyerMiddleEntity;
import io.renren.modules.car.service.CarBuyerMiddleService;


@Service("carBuyerMiddleService")
public class CarBuyerMiddleServiceImpl extends ServiceImpl<CarBuyerMiddleDao, CarBuyerMiddleEntity> implements CarBuyerMiddleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CarBuyerMiddleEntity> page = this.page(
                new Query<CarBuyerMiddleEntity>().getPage(params),
                new QueryWrapper<CarBuyerMiddleEntity>()
        );

        return new PageUtils(page);
    }

}
